


CFLAGS	:= -DHAVE_CONFIG_H -I. -I.. -I../include/ -g -O2

TARGET	:= $(patsubst %.c,%,$(wildcard *.c))

all : $(TARGET)

$(TARGET) : % : %.c
	@mkdir -pv .deps
	gcc $(CFLAGS) -MT $@.o -MD -MP -MF .deps/$@.Po -c -o $@.o $<
	gcc -g -O2 -o $@ $@.o ../src/libmtdev.a -L../src/


clean : 
	rm -rfv $(TARGET) *.o .deps


